deps: upgrade docker/distribution to v2.8.3 with reference package migration#674
Merged
dlevy-msft-sql merged 2 commits intomainfrom Jan 29, 2026
Merged
deps: upgrade docker/distribution to v2.8.3 with reference package migration#674dlevy-msft-sql merged 2 commits intomainfrom
dlevy-msft-sql merged 2 commits intomainfrom
Conversation
…on/reference The docker/distribution v2.8.3 release deprecated the reference package and moved it to github.com/distribution/reference as a standalone module. This change: - Upgrades github.com/docker/distribution from v2.8.2 to v2.8.3 - Migrates import from github.com/docker/distribution/reference to github.com/distribution/reference (v0.6.0) This supersedes #658 which failed to build due to the breaking change. Closes #658
There was a problem hiding this comment.
Pull request overview
This PR upgrades github.com/docker/distribution from v2.8.2 to v2.8.3 and addresses a breaking change introduced in the newer version. The v2.8.3 release deprecated the reference package within docker/distribution and moved it to a standalone module at github.com/distribution/reference. This PR correctly migrates the codebase to use the new standalone reference package.
Changes:
- Upgrades docker/distribution dependency from v2.8.2 to v2.8.3 in go.mod
- Adds the new standalone github.com/distribution/reference v0.6.0 as a direct dependency (moved from indirect)
- Updates the import statement in internal/container/docker.go to use the new package location
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| go.mod | Updates docker/distribution to v2.8.3 and adds distribution/reference v0.6.0 as a direct dependency |
| go.sum | Updates checksums for the upgraded docker/distribution v2.8.3 package |
| internal/container/docker.go | Migrates import from deprecated docker/distribution/reference to new standalone distribution/reference package |
shueybubbles
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades
github.com/docker/distributionfrom v2.8.2 to v2.8.3 and fixes the breaking change by migrating to the new standalone reference package.Problem
PR #658 (Dependabot) attempted to upgrade docker/distribution but failed with:
The v2.8.3 release deprecated the reference package and moved it to
github.com/distribution/referenceas a standalone module.Changes
github.com/docker/distributionfrom v2.8.2 to v2.8.3github.com/distribution/referencev0.6.0 (the new standalone package)internal/container/docker.goto import from the new package locationTesting
go build ./...passesTestController_ListTagspasses (uses the reference package)Supersedes #658